<?php

/**
 *
 * @file   Index.php
 * @date   2017-11-28
 * @author sg
 */

namespace app\admin\controller;
use app\admin\model\FilialeTodoModel;
class FilialeTodo extends Common{

    public function _initialize(){
        // todo...
    }
    /**
     * 后台首页
     */
    public function index(){
        if(@$_GET['id'] && @$_GET['goid'])
        {
            $filialeTodoModel = new FilialeTodoModel();
            $filialeTodoModelData = $filialeTodoModel->findData(['Id'=>@$_GET['id']]);
            $this->redirect($filialeTodoModelData['gotoUrl']);
        }
        else
        {
            $this->redirect('/admin/index/index');
        }
    }
}